<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<c:choose>
    <c:when test="${sessionScope.user==null}">
        <a href="register.jsp">用户注册</a>
        <a href="login.jsp">用户登录</a>
    </c:when>
    <c:otherwise>
        欢迎您:<span style="color: blue">${sessionScope.user.user_name}</span><a href="authentication.do?method=exit">退出</a><br/>
        <a href="goods/queryGoods.do">查看商品列表</a>
    </c:otherwise>
</c:choose>
    首页
</body>
</html>
